/ Assembly List / LJCNetCommon / CodeTokenizer / IsParam

Namespace - LJCNetCommon


Parameters
text - The text value.

Returns

True if a param item, otherwise false.

Syntax

C#
public Boolean IsParam(String text)

Check if the text is a param comment. (E)

Example

C#
using LJCNetCommon;

var tokenizer = new CodeTokenizer();
string text = " /// <param name=\"id\">The ID value.</param>";
short tokenIndex = 0;
string token = tokenizer.GetToken(tokenIndex);
if (tokenizer.IsCodeXMLComment(token))
{
  bool isParam = tokenizer.IsParam(text);
  // Value isParam is true.
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.